package Month09.day0918.part_1;

public class Zi extends Fu{
    int age;
    String name;
    String gender;

    public Zi(int age, String name, String gender) {
        super(age,name,gender);
        this.age = age;
        this.name = name;
        this.gender = gender;
        System.out.println("子类执行了构造方法");
    }
    {
        System.out.println("子类实例代码块执行");
    }
    static{
        System.out.println("子类静态代码块执行");
    }

    @Override
    public void print(){
        System.out.println("子类方法执行");
    }
}
